package xyz.zq.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import xyz.zq.cloud.bs.api.entity.Role;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author hzq
 * @since 2020-05-11
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 通过用户ID，查询角色信息
     *
     * @param userId
     * @return
     */
    List<Role> listRolesByUserId(Integer userId);
}
